package com.party.service.excellentparty;

/**
 * Created with IntelliJ IDEA.
 * User: beyond
 * Date: 14-9-18
 * Time: 下午10:37
 * To change this template use File | Settings | File Templates.
 */

import com.party.common.Page;
import com.party.model.VotePerson;

import java.util.List;

/**
 * 投票人员
 */
public interface VotePersonService {
    /**
     * 投票人员
     * 增删改查
     */
    public int addVotePerson(VotePerson votePerson);

    public int deleteVotePersonByPrimaryKey(Integer id);

    public int deleteVotePersonByIds(String ids);

    public VotePerson getVotePersonByPrimaryKey(Integer id);

    public VotePerson getVotePerson(VotePerson votePerson);

    public int updateVotePersonByPrimaryKey(VotePerson votePerson);

    /**
     * 获得投票人员数据列表（分页）
     * @param pageSize
     * @param pageNumber
     * @return
     */
    public Page getVotePersonList(VotePerson votePerson, int pageSize, int pageNumber);

    public int addVotePersonByUserIds(Integer voteid,String[] userids);

    public List<VotePerson> getAllVotePerson();

    public VotePerson getVotePersonByUid(VotePerson votePerson);

    public Page getListPageByCustorm(VotePerson votePerson, int pageSize, int pageNumber);

    public List<VotePerson> getAllUsersByVoteId(Integer voteid);
}
